const ships = require("../sql/ships")
const sql = require('../sql/mysql');
const jwt = require("jsonwebtoken");

module.exports = (req,res)=>{
   sql.set(ships,{_id:req.fields._id},req.fields).then(()=>{
      res.send({
         code:0,
         msg:"编辑成功"
      })
   })
}